<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo06</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/3.0.2/vue.global.js"></script>
</head>

<body>
    <div id="app"></div>
</body>
<script>
    //Non-props属性 
    //其实就是子组件没有接受父组件传递过来的参数，
    //而子组件完全不变的复制了属性到自己的标签
    const app = Vue.createApp({
        template: `
         <h2>JSPang.com</h2>
         <hello />
         `
    })
    app.component('Hello', {
        //这个可以避免不接受值的时候复制
        inheritAttrs: false,
    template: `<h3>Hello World</h3>`
})
    const vm = app.mount("#app")
</script>

</html>